package com.iknow;

import android.os.Parcel;
import android.os.Parcelable;
import java.io.InputStream;
import org.w3c.dom.Element;

public class ServerResult
  implements Parcelable
{
  private String mMsg;
  private int mStausCode;
  private String mStringData;
  private InputStream mWebData;
  private Element mXmlData;

  public ServerResult(int paramInt, String paramString, Object paramObject)
  {
    this.mStausCode = paramInt;
    this.mMsg = paramString;
    if (paramObject instanceof Element)
      this.mXmlData = ((Element)paramObject);
    while (true)
    {
      do
        while (true)
        {
          return;
          if (!(paramObject instanceof String))
            break;
          this.mStringData = ((String)paramObject);
        }
      while (!(paramObject instanceof InputStream));
      this.mWebData = ((InputStream)paramObject);
    }
  }

  public int describeContents()
  {
    return 0;
  }

  public int getCode()
  {
    return this.mStausCode;
  }

  public String getMsg()
  {
    return this.mMsg;
  }

  public String getStringData()
  {
    return this.mStringData;
  }

  public InputStream getWebData()
  {
    return this.mWebData;
  }

  public Element getXmlData()
  {
    return this.mXmlData;
  }

  public void setDataStrem(InputStream paramInputStream)
  {
    this.mWebData = paramInputStream;
  }

  public void writeToParcel(Parcel paramParcel, int paramInt)
  {
    paramParcel.writeString(this.mMsg);
  }
}